package com.javaclimb.music.service;

import com.javaclimb.music.po.Admin;
import com.javaclimb.music.po.Consumer;

public interface LoginService {
    /**
     * 根据用户名和密码判断登录是否成功
     * @param admin
     * @return
     */
    public boolean IsLogin(Admin admin);

    /**
     * 账号注册
     * @param admin
     * @return
     */
    public int CreateAdmin(Admin admin);

    /**
     * 根据用户名和密码判断登录是否成功
     * @param consumer
     * @return
     */
    public boolean IsUserLogin(Consumer consumer);
}
